package com.hzdl.library.domain;

import com.hzdl.library.annoation.Desensitized;
import com.hzdl.library.enums.SensitiveTypeEnum;

import java.io.Serializable;
import java.util.Date;

public class ReaderInfo implements Serializable{
    private Integer reader_id;
    private String name;
    private String sex;
    private Date birth;
    private String address;

    @Desensitized(type = SensitiveTypeEnum.MOBILE_PHONE)
    private String telcode;

    public ReaderInfo() {
    }

    public ReaderInfo(Integer reader_id, String name, String sex, Date birth, String address, String telcode) {
        this.reader_id = reader_id;
        this.name = name;
        this.sex = sex;
        this.birth = birth;
        this.address = address;
        this.telcode = telcode;
    }

    public Integer getReader_id() {
        return reader_id;
    }

    public void setReader_id(Integer reader_id) {
        this.reader_id = reader_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTelcode() {
        return telcode;
    }

    public void setTelcode(String telcode) {
        this.telcode = telcode;
    }

    @Override
    public String toString() {
        return "ReaderInfo{" +
                "reader_id=" + reader_id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birth=" + birth +
                ", address='" + address + '\'' +
                ", telcode='" + telcode + '\'' +
                '}';
    }
}
